package com.ct.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 经理视频出差申请记录 数据库操作接口
 */
@Mapper
public interface TravelApprovalMapper<T, P> extends BaseMapper<T, P> {

    /**
     * 根据TravelApprovalId更新
     */
    Integer updateByTravelApprovalId(@Param("bean") T t, @Param("travelApprovalId") Integer travelApprovalId);

    /**
     * 根据TravelApprovalId删除
     */
    Integer deleteByTravelApprovalId(@Param("travelApprovalId") Integer travelApprovalId);

    /**
     * 根据TravelApprovalId获取对象
     */
    T selectByTravelApprovalId(@Param("travelApprovalId") Integer travelApprovalId);

    T selectByTravelId(@Param("travelId") Integer travelId);

}
